# encoding: utf-8
# Use this hook to configure WeixinRailsMiddleware bahaviors.
WeixinRailsMiddleware.configure do |config|

  ## NOTE:
  ## If you config all them, it will use `weixin_token_string` default

  ## Config public_account_class if you SAVE public_account into database ##
  # Th first configure is fit for your weixin public_account is saved in database.
  # +public_account_class+ The class name that to save your public_account
  # config.public_account_class = "PublicAccount"

  ## Here configure is for you DON'T WANT TO SAVE your public account into database ##
  # Or the other configure is fit for only one weixin public_account
  # If you config `weixin_token_string`, so it will directly use it
  # config.weixin_token_string = '618fc856c6ff8e953eebd9a8'
  config.weixin_token_string = 'oSviO8loFN3XRqemAMpTwIWL'
  config.weixin_secret_string = 't7RYzdJ9rlr6JXS7CiqeNunauntcYvg5Xe71CzHLEng6NPZxtI'
  
  # 加密配置，如果需要加密，配置以下参数
  # config.encoding_aes_key = 'eff47f0b9f883defa6f9f6e56bc3a28553722d6aafd'
  # config.app_id = "your app id"

  ## You can custom your adapter to validate your weixin account ##
  # Wiki https://github.com/lanrion/weixin_rails_middleware/wiki/Custom-Adapter
  # config.custom_adapter = "MyCustomAdapter"

end
